package com.ideal.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

/**
 * @Author songfz
 * @Description
 * @Date 2022/7/27
 */
@Configuration
public class SpringBeanInit {


    @Autowired
    private JedisPool jedisPool;


    @Bean
    public Jedis jedis(){
        return jedisPool.getResource();
    }

}
